#ifndef __LINUX_INTERRUPT_H__
#define __LINUX_INTERRUPT_H__

#include "common/basictypes.h"
#include "linux/cpumask.h"
#include "i386/kernel/ptrace.h"

typedef int irqreturn_t;

#define IRQ_NONE    (0)
#define IRQ_HANDLED (1)
#define IRQ_RETVAL  ((x) != 0)

struct irqaction {
  irqreturn_t (*handler)(int, void*, struct pt_regs *);
  u32 flags;
  cpumask_t mask;
  char* name;
  void* dev_id;
  struct irqaction* next;
  int irq;
  // struct proc_dir_entry *dir;
};

#endif  // __LINUX_INTERRUPT_H__
